package com.lgmshare.component.app;

import android.content.Context;

/**
 * @author: lim
 * @email: lgmshare@gmail.com
 * @Version V1.0
 * @Description 框架配置参数
 * @datetime : 2015/5/11 11:32
 */
public class LaraConfig {

    public static final String TAG = "Lara";
    public static final String VERSION = "1.0.0";

    /**
     * App Context
     */
    private static Context mContext;
    /**
     * App功能配置项
     */
    private static LaraConfiguration mConfiguration;

    /**
     * @param context       applicationContext
     * @param configuration
     */
    public static void setup(Context context, LaraConfiguration configuration) {
        mContext = context;
        mConfiguration = configuration;
    }

    public static Context getContext() {
        return mContext;
    }

    public static boolean isDebugModel() {
        return mConfiguration.isEnableDebugModel();
    }
}
